package com.neusoft.elmboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.neusoft.elmboot.exception.exceptions.BaseException;
import com.neusoft.elmboot.po.wallet.WalletRule;

import java.math.BigDecimal;

public interface WalletRuleService extends IService<WalletRule> {
    
    /**
     * 获取充值规则
     */
    WalletRule getRechargeRule() throws BaseException;
    
    /**
     * 获取提现规则
     */
    WalletRule getWithdrawRule() throws BaseException;
    
    /**
     * 更新充值规则
     */
    void updateRechargeRule(BigDecimal rechargeLevel, BigDecimal rechargeGift) throws BaseException;
    
    /**
     * 更新提现规则
     */
    void updateWithdrawRule(BigDecimal withdrawRate) throws BaseException;
    
    /**
     * 更新透支规则
     */
    void updateOverdraftRule(BigDecimal dailyInterestRate, 
                            BigDecimal minOverdraftAmount, 
                            BigDecimal maxOverdraftAmount) throws BaseException;
}

